<{include file="../Common/head.html"}>
<body>
	<table class="table">
		<tr>
			<td class="th" colspan="20">后台用户列表</td>
		</tr>
		<tr class="tableTop">
			<td class="tdLittle1">ID</td>
			<td>用户名</td>
			<td>最后登录时间</td>
			<td>最后登录IP</td>
			<td>帐号状态</td>
			<td>操作</td>
		</tr>
		<{foreach from=$result item=v}>
		<tr>
			<td><{$v.aid}></td>
			<td><{$v.username}></td>
			<td><{$v.logintime|date_format:"%Y-%m-%d %H:%I:%S"}></td>
			<td><{$v.loginip}></td>
			<td><{if $v.islock==0}>正常<{else}>锁定<{/if}></td>
			<td><{if $v.islock==0}>
				 <a href="<{$smarty.const.__APP__}>?c=adminuser&a=lock&aid=<{$v.aid}>">锁定</a>
				 <{else}>
				 <a href="<{$smarty.const.__APP__}>?c=adminuser&a=unlock&aid=<{$v.aid}>">解锁</a>
				 <{/if}>
				 <a href="<{$smarty.const.__APP__}>?c=adminuser&a=del&aid=<{$v.aid}>" onclick="del()">删除</a>
				 <script>
				 	function del(){
				 		var isok = confirm('您确认删除这个管理员吗?');
				 		if(isok){
				 			return true;
				 		}else{
				 			return false;
				 		}
				 	}
				 </script>
				</td>
				 
		</tr>
		<{/foreach}>
	</table>

</body>
</html>